import request from "@/util/request";


export const getChannelList = () => request({
  url: '/qichong-record/api/marketing/channel',
})

export const getTypeList = () => request({
  url: '/qichong-record/api/marketing/ticketType'
})

export const addCoupons = body => request({
  url: '/qichong-record/api/marketing/channelTicket',
  method: 'post',
  data: body
})

export const getCoupons = () => request({
  url: '/qichong-record/api/marketing/receivedCoupon'
})

// 获取门票列表
export const getticketsList = (shopId) => request({
  url: '/qichong-record/api/ticket/list',
  params: {
    shopId
  }
})
